package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.model.Lock
import com.sgcc.nfc.lock.domain.repository.LockRepository
import javax.inject.Inject

class GetLockDetailUseCase @Inject constructor(
    private val repository: LockRepository
) {
    suspend operator fun invoke(lockId: Long): NetworkResult<Lock> =
        repository.getLockDetail(lockId)
}
